package com.zj.transactionspringboot01.controller;

import com.zj.pojo.Fruit;
import com.zj.transactionspringboot01.component.Pair;
import com.zj.transactionspringboot01.domain.Teacher;
import com.zj.transactionspringboot01.service.IteacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class Controller {
    @Autowired
    private IteacherService service;

    @Autowired
    private Fruit fruit;
    @Autowired
    private Pair pair;
    @GetMapping("/hello")
    public Teacher hello() {
        return service.selectTeacher(110);
    }
}
